home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / eroticos / spermananalodyssea.swf / scripts / frame_8 / PlaceObject2_149_93 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2005-11-04  |  3KB  |  48 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.sperman.scrollStart == true)
  3.    {
  4.       if(flag == false)
  5.       {
  6.          flag = true;
  7.          _root.wallBlock.duplicateMovieClip("wallBlock" + depthCounter,depthCounter);
  8.          _root.wallBlock.duplicateMovieClip("wallBlock" + depthCounter + 1,depthCounter + 1);
  9.          _root["wallBlock" + depthCounter]._y = _root.blockController._y - _root.blockController._height / 2 - _root.wallBlock._height / 2;
  10.          _root["wallBlock" + depthCounter + 1]._y = _root.blockController._y + _root.blockController._height / 2 + _root.wallBlock._height / 2;
  11.          _root["wallBlock" + depthCounter + 1]._rotation = 180;
  12.          _root.sombra.duplicateMovieClip("sombra" + sombraCounter,sombraCounter);
  13.          _root.sombra.duplicateMovieClip("sombra" + sombraCounter + 1,sombraCounter + 1);
  14.          _root["sombra" + sombraCounter]._y = _root.blockController._y - _root.blockController._height / 2 - _root.sombra._height / 2 + 10;
  15.          _root["sombra" + sombraCounter + 1]._y = _root.blockController._y + _root.blockController._height / 2 + _root.sombra._height / 2 - 10;
  16.          _root["sombra" + sombraCounter + 1]._rotation = 180;
  17.          _root["sombra" + sombraCounter + 1]._xscale *= -1;
  18.       }
  19.       if(_root.wallBlock._x - 0.75 * _root.wallBlock._width >= _root["wallBlock" + depthCounter]._x && _root["wallBlock" + depthCounter]._x >= _root.wallBlock._x - 1.25 * _root.wallBlock._width)
  20.       {
  21.          depthCounter += 2;
  22.          if(depthCounter >= 299)
  23.          {
  24.             depthCounter = 100;
  25.          }
  26.          _root.wallBlock.duplicateMovieClip("wallBlock" + depthCounter,depthCounter);
  27.          _root.wallBlock.duplicateMovieClip("wallBlock" + depthCounter + 1,depthCounter + 1);
  28.          _root["wallBlock" + depthCounter]._y = _root.blockController._y - _root.blockController._height / 2 - _root.wallBlock._height / 2;
  29.          _root["wallBlock" + depthCounter + 1]._y = _root.blockController._y + _root.blockController._height / 2 + _root.wallBlock._height / 2;
  30.          _root["wallBlock" + depthCounter + 1]._rotation = 180;
  31.       }
  32.       if(_root.sombra._x - 0.75 * _root.sombra._width >= _root["sombra" + sombraCounter]._x && _root["sombra" + sombraCounter]._x >= _root.sombra._x - 1.25 * _root.sombra._width)
  33.       {
  34.          sombraCounter += 2;
  35.          if(sombraCounter >= 29)
  36.          {
  37.             sombraCounter = 10;
  38.          }
  39.          _root.sombra.duplicateMovieClip("sombra" + sombraCounter,sombraCounter);
  40.          _root.sombra.duplicateMovieClip("sombra" + sombraCounter + 1,sombraCounter + 1);
  41.          _root["sombra" + sombraCounter]._y = _root.blockController._y - _root.blockController._height / 2 - _root.sombra._height / 2 + 10;
  42.          _root["sombra" + sombraCounter + 1]._y = _root.blockController._y + _root.blockController._height / 2 + _root.sombra._height / 2 - 10;
  43.          _root["sombra" + sombraCounter + 1]._rotation = 180;
  44.          _root["sombra" + sombraCounter + 1]._xscale *= -1;
  45.       }
  46.    }
  47. }
  48.